<!DOCTYPE html>
<html>
<head>
	<#include "header.ftl">
</head>
<body>
	<#include "nav.ftl">
	<div class="container">
		<div class="row" id="topPanel">
			<div class="col-md-3">
				<div class="panel panel-primary">
					<div class="panel-heading">
					<#if folder.fatherId==0>
						<p class="panel-title">${folder.name}</p>
					<#else>
						<@shishuo_folder_tag folderId=folder.fatherId>
							<p class="panel-title">${tag_folder.name}</p>
						</@shishuo_folder_tag>
					</#if>
					</div>
					<div class="panel-body">
					<#if folder.fatherId==0>
			        	<@shishuo_folder_list_tag folderId=folder.folderId>
			        	<#list tag_folder_list as tag_folder>
			        	<div style="margin-bottom: 8px;">
							<span class="glyphicon glyphicon-chevron-right"></span> <a href="<@shishuo_folder_url_tag folderId=tag_folder.folderId/>" style="font-size: 14px; color: #555555; text-decoration: none;"> ${tag_folder.name} </a>
						</div>
						</#list>
			   			</@shishuo_folder_list_tag>
			        <#else>
					 <@shishuo_folder_list_tag folderId=folder.fatherId>
			        	<#list tag_folder_list as tag_folder>
						<div style="margin-bottom: 8px;">
							<span class="glyphicon glyphicon-chevron-right"></span> <a href="<@shishuo_folder_url_tag folderId=tag_folder.folderId/>" style="font-size: 14px; color: #555555; text-decoration: none;"> ${tag_folder.name} </a>
						</div>
						</#list>
			       		</@shishuo_folder_list_tag>
			       		</#if>
					</div>
				</div>

				<div class="panel panel-primary">
					<div class="panel-heading">
						<p class="panel-title">联系方式</p>
					</div>
					<div class="panel-body">
						${SYS_COMPANY}<br> 联系人：${SYS_LINKMAN}<br>联系手机：${SYS_CELLPHONE}  <br> 联系电话：${SYS_PHONE} <br> 邮箱：${SYS_EMAIL} <br> QQ：${SYS_QQ}<br> 公司地址：${SYS_ADDRESS} <br>
					</div>
				</div>
			</div>
			<div class="col-md-9">
				<div class="panel panel-default">
					<#if folder.fatherId==0>
						<@shishuo_folder_list_tag folderId=folder.folderId>
							<#list tag_folder_list as tag_folder>
								<#if tag_folder_index==0>
									<div class="panel-heading">
										<p class="panel-title">${tag_folder.name}</p>
									</div>
									<div class="panel-body">
										<@shishuo_article_page_tag folderId=folder.folderId p=1 rows="8">
											<table class="table table-hover">
												<#list tag_article_page.list as tag_article>
													<tr style="cursor:pointer"  onclick="goArticle('<@shishuo_article_url_tag articleId=tag_article.articleId></@shishuo_article_url_tag>')">
														<td>${tag_article.title}</td>
														<td>${tag_article.createTime?string("yyyy-MM-dd")}</td>
													</tr>
												</#list>
											</table>
											<div class="text-center">${tag_article_page.pageNumHtml}</div>	
										</@shishuo_article_page_tag>
									</div>
								</#if>
							</#list>
						</@shishuo_folder_list_tag>
					<#else>
						<div class="panel-heading">
							<p class="panel-title">${folder.name}</p>
						</div>
						<div class="panel-body">
							<@shishuo_article_page_tag folderId=folder.folderId p=1 rows="8">
								<table class="table table-hover">
									<#list tag_article_page.list as tag_article>
										<tr style="cursor:pointer" onclick="goArticle('<@shishuo_article_url_tag articleId=tag_article.articleId></@shishuo_article_url_tag>')">
											<td>${tag_article.title}</td>
											<td>${tag_article.createTime?string("yyyy-MM-dd")}</td>
										</tr>
									</#list>
								</table>	
								<div class="text-center">${tag_article_page.pageNumHtml}</div>
							</@shishuo_article_page_tag>
						</div>
					</#if>
				</div>
			</div>
		</div>
	</div>
	<#include "script.ftl">
	<#include "footer.ftl">
	<script>
		var goArticle =function(urlAddr){
			window.location = urlAddr;
		}
	</script>
</body>
</html>